package bag.dao;

import bag.c3p0Untils.PageBean;
import bag.domain.Product;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by 冷丶 on 2017/10/24.
 */
public interface ProductDao {
    List<Product> findAll();

    int updateById(Product product);

    Product findById(String pid);

    boolean deleteById(String pid) throws SQLException;

    int insert(Product product) throws SQLException;

    List<Product> findByCondition(String condition);

    PageBean<Product> findPage(int currentPage, int pageSize);
}
